#include "../server.hpp"
#include <iostream>
#include <string>

int main() {
    Socket cli_sock;
    cli_sock.CreateClient(8888,"127.0.0.1");
    int cnt=5;
    while(cnt--) {
        std::string str = "hello world!!!\n";
        cli_sock.Send(str.c_str(), str.size());
        char buf[1024] = {0};
        cli_sock.Recv(buf, 1023);
        std::cout<<buf;
        sleep(1);
    }
    return 0;
}